package com.school.empsys.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 员工合同
 */
public class EmpContract extends BaseEntity<Integer> {

    private Integer userId;

    private String url;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date signDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireDate;

    private Integer status;

    private String contractNo;

    private User user;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}